package cn.yj.register;

import cn.yj.register.configType.IConfigRegister;
import cn.yj.register.configType.LocalConfigRegister;
import cn.yj.register.configType.LocalRegisterConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * @author Liyj
 */
@Configuration
public class RegisterConfigBean {

	@Bean("LOCAL")
	@Conditional(value = LocalRegisterConfig.class)
	public LocalConfigRegister localConfigRegister() {
		return new LocalConfigRegister();
	}

}
